// 2018-06-27
// 13:37:36@chazi@qq81938728

ccui.helper={seekWidgetByTag:function(root,tag){if(!root){return null;}
if(root.getTag()==tag){return root;}
var arrayRootChildren=root.getChildren();var length=arrayRootChildren.length;for(var i=0;i<length;i++){var child=arrayRootChildren[i];var res=this.seekWidgetByTag(child,tag);if(res!=null){return res;}}
return null;},seekWidgetByName:function(root,name){if(!root){return null;}
if(root.getName()==name){return root;}
var arrayRootChildren=root.getChildren();var length=arrayRootChildren.length;for(var i=0;i<length;i++){var child=arrayRootChildren[i];var res=this.seekWidgetByName(child,name);if(res!=null){return res;}}
return null;},seekWidgetByRelativeName:function(root,name){if(!root){return null;}
var arrayRootChildren=root.getChildren();var length=arrayRootChildren.length;for(var i=0;i<length;i++){var child=arrayRootChildren[i];var layoutParameter=child.getLayoutParameter(ccui.LayoutParameter.RELATIVE);if(layoutParameter&&layoutParameter.getRelativeName()==name){return child;}}
return null;},seekActionWidgetByActionTag:function(root,tag){if(!root){return null;}
if(root.getActionTag()==tag){return root;}
var arrayRootChildren=root.getChildren();for(var i=0;i<arrayRootChildren.length;i++){var child=arrayRootChildren[i];var res=this.seekActionWidgetByActionTag(child,tag);if(res!=null){return res;}}
return null;}};ccui.helper;